<?php $create_date = Helper::explodeCharData(date('F,j,Y', Helper::changeDateToFormat($data->create_date, 'm-d-Y'))); ?>
<?php $imagePost = !empty($data->image) ? Helper::renderImage($data->image, 'uploads/thumb/Post', ',', true, true) : '/uploads/no_image.gif' ?>

<div class="row-fluid post-preview">
    <div class="span6 clearfix">
        <div class="date pull-left">
            <p class="day"><?php echo $create_date[0]; ?></p>
            <p class="month"><?php echo $create_date[1]; ?></p>
            <p class="year"><?php echo $create_date[2]; ?></p>
            <img class="post-type" src="<?php echo Helper::themeUrl(); ?>/img/image-type.png" alt="Post Type" />
        </div>
        <div class="image pull-right">
            <div class="imgLiquidFill imgLiquid">
                <img src="<?php echo $imagePost; ?>" alt="<?php echo $data->title; ?>" />
            </div>
            <div class="prettyFrame">
                <ul class="zoom">
                    <li><a href="#" title="Chain"><img src="<?php echo Helper::themeUrl(); ?>/img/chain.png" alt="Chain <?php echo $data->title; ?>" /></a></li>
                    <li><a href="<?php echo $imagePost; ?>" data-rel="prettyPhoto" title="<?php echo $data->title; ?>"><img src="<?php echo Helper::themeUrl(); ?>/img/loop.png" alt="Zoom <?php echo $data->title; ?>" /></a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="span6 text">
        <h2 class="title"><a href="<?php echo Helper::url('/Blog/post/view', array('lang' => Yii::app()->language, 'postAlias' => $data->alias)); ?>" title="<?php echo $data->title; ?>"><?php echo $data->title; ?></a></h2>
        <p class="tertiary-color"><?php echo $data->info; ?></p>
        <p class="links">
            <a href="<?php echo Helper::url('/Blog/post/index', array('lang' => Yii::app()->language, 'tag' => $data->tags)); ?>" title="<?php echo $data->tags; ?>"><?php echo $data->tags; ?></a> |
            <a href="<?php echo Helper::url('/Blog/post/view', array('lang' => Yii::app()->language, 'postAlias' => $data->alias)); ?>#comments" title="<?php echo $data->countComment; ?> Comments"><?php echo $data->countComment; ?> Comments</a></p>
    </div>
</div>